package de.cbf.cam.dsa.entity.edit.talent.persister.db4o.server.preferences;

import org.eclipse.jface.preference.IPreferenceStore;

import de.cbf.cam.dsa.entity.edit.talent.persister.db4o.server.Launcher_EntityTalent_Db4oServer;
import de.cbf.cam.dsa.entity.edit.talent.persister.db4o.server.act.ActivatorEntityTalent_Db4oServer;
import de.cbf.util.db.db4o.exceptions.ServerNotStartedException;
import de.cbf.util.db.db4o.preferences.AbstractDB4OServerPreferencePage;

public class PrefPage_EntityTalent_Db4oServer
	extends AbstractDB4OServerPreferencePage {
	
	public static final String PAGE_DESCRIPTION = "Entity Talent Preferences for DB4O Server";
	@Override
	protected IPreferenceStore getPreferenceStoreFromActivator() {		
		return ActivatorEntityTalent_Db4oServer.getDefault().getPreferenceStore();
	}

	@Override
	protected String getPageDescription() {
		return PAGE_DESCRIPTION;
	}

	@Override
	protected void startDBServer() throws ServerNotStartedException {
		Launcher_EntityTalent_Db4oServer.getInstance().launchServer();			
	}

	@Override
	protected void stopDBServer() {
		Launcher_EntityTalent_Db4oServer.getInstance().stopServer();		
	}
	
}